<template>
  <div class="about">
    <h1>关于页</h1>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive, toRefs, onMounted } from 'vue'
import { getData } from '../api/movie'

export default defineComponent({
  name:'About',
  components:{},
  setup() {
    const state = reactive({
      currentPage : 1,
      limit: 10
    })
    const getDataList = async () => {
      // let params = {
      //   currentPage: state.currentPage,
      //   pageSize: state.limit,
      // };
      // let res = await getData(params);
      // console.log(res);
    };
    onMounted(() => {
      getDataList()
    });
    return {
      ...toRefs(state)
    }
  },
})
</script>

